#include <iostream>
#include <array>
#include <algorithm>

using namespace std;

int main() {
    // 编译期查找示例
    constexpr array<int, 10> al = {3, 2, 1, 4, 5, 0, 0, 0, 0, 0};
    constexpr auto it = find(al.begin(), al.end(), 4);
    
    // 确保在编译期执行
    static_assert(it != al.end());
    static_assert(*it == 4);
    
    // 运行时输出
    cout << "Found: " << *it << endl;
    
    return 0;
}